]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Fix warning on shutdown
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 8 Jul 2021 18:42:55 +0000 (20:42 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 8 Jul 2021 23:17:01 +0000 (23:17 +0000)
ClutterActor unsets its layout manager's :container property during
dispose, so the corresponding vfunc should handle being passed NULL.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1909>

js/ui/overviewControls.js

index 88726573dc546fe7c7f597779fba04b0b29c01e0..c153161696b80f5b192c8bf028ba1959fca01c8c 100644 (file)
@@ -112,7 +112,8 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
 
     vfunc_set_container(container) {
         this._container = container;
-        this.hookup_style(container);
+        if (container)
+            this.hookup_style(container);
     }
 
     vfunc_get_preferred_width(_container, _forHeight) {